<template>
    <div>
        <input v-model="active" type="text" placeholder="请输入备忘事项">
        <input v-model="date" type="date">
        <l-btn name="提交" @click="submitEvt"/>
    </div>
</template>

<script>
    export default {
        data(){
            return{
                active:'',
                date:''
            }
        },
        methods:{
            submitEvt(){
                this.$emit('submitEvt',{active:this.active,date:this.date})
                this.active = ''
                this.date = ''
                console.log('TodoForm的自定义事件触发，将去触发index的自定义submitEvt事件');
            }
        }
    }
</script>

<style scoped>
    input{
        margin: 0 30px;
    }
</style>